-- init.lua
--
-- Does initilization stuff.
-- 
GM.Version = "0.5.01"
GM.Name = "Untitled Gamemode"
GM.Author = "Jimi and Zack"

AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("client/inv.lua")
AddCSLuaFile("client/HUD.lua")
AddCSLuaFile("shared/inv.lua")
AddCSLuaFile("lib/base.lua")
AddCSLuaFile("client/teammenu.lua")
AddCSLuaFile("shared/teammenu.lua")

include("shared.lua")
include("client/inv.lua")
include( "lib/base.lua" ) -- initialize Teams Table and load functions
include( "lib/perks.lua" ) -- load perks

function main()
  -- this is the pseudo entrypoint
  
  --local Player1 = Teams.Player.new( "Player1", nil, Teams.seekers )
  
  --local perk = Teams.Player.Perk.new( Player1.Team )
  --perk.Name = "Generic Perk"
  --perk.Tier = 0 -- easiest level to acheive
  --perk.Type = "Multipurpose Perk"
  --perk.Action = Perks.BlankPerkExample( 100 )
  --Player1.AddPerk( perk )
  
  --Player1.AddFunds( 100 )
  --Player1.print()
  
  --local gun  = Teams.Player.Inventory.Item.new( "Gun" )
  --local gun1 = Teams.Player.Inventory.Item.new( "Gun2" )
  --local gun2 = Teams.Player.Inventory.Item.new( "Gun3" )
  
  --gun.Cost = 10
  --gun1.Cost = 100
  --gun2.Cost = 90
  
  --Player1.Purchase( gun )
  --Player1.Purchase( gun1 )
  --Player1.Purchase( gun2 )
  --Player1.print()
  
  --Player1.Inventory.Remove( gun )
  --Player1.print()
  
  print( "main function called" )
  
end

-- this is essentially what the computer does
main()